Replication Code and Data for "Witch hunts? Electoral cycles and corruption lawsuits in Argentina"
Author: G Feierherd, E Gonzalez Ocantos, G Tuñón
Contact email: gfeierherd@udesa.edu.ar
Date: June 14, 2023

Files and data sources:
──────────────────────────────────────────────────────────

1. Data files: 

The file "rWitch_hunts_data.Rda" contains the following datasets: 

 dtatall 

Source: Centro de Información Judicial, Buenos Aires, Argentina. https://www.cij.gov.ar/inicio.html

 newspapers

Source: Clarin (https://www.clarin.com/) and Pagina 12 (https://www.pagina12.com.ar/)

 elections

Source: Wikpedia  


2. Codebook: 

The PDF document “codebook_dtaall.pdf” lists the variables included in dtaall 

The PDF document “codebook_newspapers.pdf” lists the variables included in newspapers 


3.  Code files to replicate results in paper:

To replicate the findings reported in the main text and the online appendix, please run "witch_hunts.R" 


Software requirements:
──────────────────────────────────────────────────────────

Here is the software, packages, versions, and any dependencies in your compute environment that is required to replicate your results.

R version 4.3.0 (2023-04-21)Platform: x86_64-apple-darwin20 (64-bit)Running under: macOS Ventura 13.4Matrix products: defaultBLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib LAPACK: /Library/Frameworks/R.framework/Versions/4.3-x86_64/Resources/lib/libRlapack.dylib;  LAPACK version 3.11.0locale:[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8time zone: America/Argentina/Buenos_Airestzcode source: internalattached base packages:[1] grid      stats     graphics  grDevices utils     datasets  methods   base     other attached packages: [1] kableExtra_1.3.4  wesanderson_0.3.6 rstatix_0.7.2     rdrobust_2.1.1    scales_1.2.1      gsheet_0.4.5      forcats_1.0.0     [8] stringr_1.5.0     purrr_1.0.1       readr_2.1.4       tidyr_1.3.0       tibble_3.2.1      tidyverse_2.0.0   lubridate_1.9.2  [15] zoo_1.8-12        gridExtra_2.3     janitor_2.2.0     dplyr_1.1.2       sandwich_3.0-2    xtable_1.8-4      texreg_1.38.6    [22] estimatr_1.0.0    ggplot2_3.4.2     pacman_0.5.1     loaded via a namespace (and not attached): [1] gtable_0.3.3      xfun_0.39         lattice_0.21-8    tzdb_0.4.0        vctrs_0.6.2       tools_4.3.0       generics_0.1.3    [8] fansi_1.0.4       pkgconfig_2.0.3   webshot_0.5.4     lifecycle_1.0.3   compiler_4.3.0    munsell_0.5.0     carData_3.0-5    [15] snakecase_0.11.0  htmltools_0.5.5   Formula_1.2-5     pillar_1.9.0      car_3.1-2         MASS_7.3-58.4     abind_1.4-5      [22] tidyselect_1.2.0  rvest_1.0.3       digest_0.6.31     stringi_1.7.12    fastmap_1.1.1     colorspace_2.1-0  cli_3.6.1        [29] magrittr_2.0.3    utf8_1.2.3        broom_1.0.4       withr_2.5.0       backports_1.4.1   timechange_0.2.0  rmarkdown_2.22   [36] httr_1.4.6        hms_1.1.3         evaluate_0.21     knitr_1.43        viridisLite_0.4.2 rlang_1.1.1       Rcpp_1.0.10      [43] glue_1.6.2        xml2_1.3.4        svglite_2.1.1     rstudioapi_0.14   R6_2.5.1          systemfonts_1.0.4